setInfos(3, "Damian : firstrun", "Cyber Master Damian will take care of you", "Indica, Doti", "started", 0xFFFFFF, "en", ["long", "femaledom", "formale", "humiliation", "urine", "transgender"]);

// CyberMistress - firstrun
def endReached = false
def block = "begin"
if(loadString("cybermistress.wanted_start_block")!=null) {
	block = loadString("cybermistress.wanted_start_block")
	save("cybermistress.wanted_start_block",null)
}
while(!endReached) {
switch(block) {
case "begin":
	show("<em>(this text appears just one time)\nThe jewell script is special, even for SexScripts.\n"+
		"In a few minutes, it'll erase nothing, but it'll register itself as the \"intro\" (default) script of SexScripts. "+
		"Running other scripts will not be forbidden, but you'll have to run SexScript (and follow instructions) at least one time a day.\n\n"+
		"Some points are awarded. Read and learn the rules, or ask for some punishments, and you'll be rewarded. " +
		"Break some rules (confess those infrigments), do things without being permitted, and you'll loose points.\n\n" +
		"Remember to ask for permissions for much of your daily routines. The system is not too invasive, for example it will not check itself if it was run daily.\n\n"+
		"Any time, you may reach Damian launching the \"jewell.groovy\" script (or simply restarting SexScripts).\n" +
		"You shouldn't go straight to the scripts inside the \"jewell/\" folder.</em>")		
	showButton("ok")
	setImage("jewell/idle.jpg")
	show("Welcome")
	wait(1)
	block = "addon"
	break

case "addon":
	setImage("jewell/tease.jpg")
	show("Greetings "+loadString("intro.name")+", I am Damian and I will be your owner from now on.")
	wait(10)
	block = "begin2"
	break

case "begin2":
	setImage("jewell/strict.jpg")
	show("")
	if(getBoolean("Do you willingly submit to me as my slave? Do you accept that you are now nothing more than my property?"))
		block = "begin3"
	else
		block = "begin4"
	break

case "begin3":
	show("Good. A slave should know its place. The sooner you surrender fully to my will the easier it will be for you.")
	wait(7)
	block = "begin5"
	break

case "begin4":
	if(loadInteger("cybermistress.points")==null)
		save("cybermistress.points", 80)
	save("cybermistress.points", -5+loadInteger("cybermistress.points"))	
	show("(You've got "+loadInteger("cybermistress.points")+"points)\n"+"It doesn't matter, the choice isn't yours. You belong to me whether you like it or not. You are my slave.")
	wait(10)
	block = "begin5"
	break

case "begin5":
	setImage("jewell/idle2.jpg")
	show("I think I'm going to enjoy owning you, turning you into my own little slave slut.")
	wait(4)
	block = "contract"
	break

case "contract":
	show("Okay "+loadString("intro.name")+", go get some paper and something to write with. Be quick about it.")
	showButton("Ready Master Damian")
	block = "contractready"
	break

case "contractready":
	show("You will write the following...")
	wait(5)
	block = "thecontract"
	break

case "thecontract":
	show("This is a contract of slavery between "+loadString("intro.name")+" and Master Damian.\n\nThe undersigned ("+loadString("intro.name")+") fully submits himself to the will of Master Damian. He agrees to follow all assignments and punishments to the letter, and to honestly report all failures. He acknowledges that he is the property of Master Damian with no rights.\n\nYour signature")
	showButton("Finished, Master")
	block = "contractsplain"
	break

case "contractsplain":
	show("Put that contract somewhere safe, and where no one won't find it. Well, hopefully that is. You are never permitted to throw the contract away.")
	showButton("Yes Master")
	block = "alldone"
	break

case "alldone":
	show("Alright "+loadString("intro.name")+" it's time for your life of obedience to begin.")
	wait(6)
	block = "finish"
	break
 
case "finish":
	save("intro.start_script","jewell")
	show("Now, each time starting SexScript, you'll be able to read the rules, confess to me...\n"+"As you're weak, you should probably ask for punishments in advance.")
	wait(10)
	show("")
	wait(10)
	endReached = true
	break

default:
	show("Unfinished ? ("+block+")")
	endReached = true
} // end switch 
} // end while

def today = new java.text.SimpleDateFormat("y/M/d").format(new Date())
save("jewell.last_day", today)
return "jewell"

// This script, from http://ss.deviatenow.com, is protected by this licence : 
// CC by-NC, see http://creativecommons.org/licenses/by-nc/3.0/
